﻿//双击事件
function CustomDbClick() {
    parent.closeWin(); //去掉双击功能
    //fnLinkSolutionItem();
}

//查看明细
var fnViewDeail = function (elCell, oRecord, oColumn, sData) {
    //debugger;
    elCell.innerHTML = "<a href=\"#\" onclick=\"javascript:fnOpenLink('" + oRecord.getData("EmployeeID") + "','" + oRecord.getData("EmpName") + "','" + sData + "');\">" + sData + "</a>";
};

//打开链接
var fnOpenLink = function (employeeID, empName, yearMonth) {
    var pagetitle = "查看【" + empName + "】" + yearMonth + "异常考勤明细";
    parent._employeeTitle = pagetitle;
    var url = "../Extend/YUIDataTableList.aspx?r=" + Math.random() + "&entity=V_wkWorkResultSal" + "&condition=EmployeeID='" + employeeID + "' and SUBSTRING(convert(varchar(10),CONVERT (date, WorkDate),120 ),0,8)='" + yearMonth + "' and (LateTime>0 or AdvancedTime>0 or LeaveTime>0 or TotalAbsenceTime>0)";
    parent.addTabs(pagetitle, encodeURI(url));
    parent.NeedRefreshPage = this;
}




